<h3>List of accounts</h3>

<a href="{url link=$aParams.url_edit}">{language text="add_user"}</a>
<br/>
<br/>

<table border="0" cellpadding="2" cellspacing="1" width="100%" class="tbl">
<tr>
    <td class="tbl_header" nowrap>{language text="e_mail"}</td>
    <td class="tbl_header" nowrap>{language text="first_name"}</td>
    <td class="tbl_header" nowrap>{language text="last_name"}</td>
    <td class="tbl_header" nowrap>{language text="actions"}</td>
</tr>
{foreach from=$aAccs item=aAcc}
<tr class="{cycle values='tbl_row_odd,tbl_row_even'}">
    <td>{$aAcc.email}</td>
    <td>{$aAcc.fname}</td>
    <td>{$aAcc.lname}</td>
    <td>
      <a href="{url link=$aParams.url_edit id=$aAcc.account_id}">{language text="edit"}</a>
      |
      <a href="{url link='current' id=$aAcc.account_id act='delete'}" onclick="sure();">{language text="delete"}</a>
    </td>
</tr>
{foreachelse}
<tr class="tbl_row_odd">
    <td colspan="5" align="center">{language text="list_is_empty"}</td>
</tr>
{/foreach}
<tr>
    <td colspan="5" class="tbl_header">{include file="$sMainTemplatePath/_blocks/pager.html"}</td>
</tr>
</table>